package com.zch.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zch.dao.CompanyRegisterNewMapper;
import com.zch.dao.model.CompanyRegisterNew;
import com.zch.dao.model.CompanyRegisterNewExample;
import com.zch.daoEx.CompanyRegisterNewMapperEx;
import com.zch.daoEx.model.CompanyRegisterNewEx;

@Service
public class CompanyRegisterNewService {
	@Autowired
	private CompanyRegisterNewMapper companyRegisterNewMapper;
    @Autowired
    private CompanyRegisterNewMapperEx companyRegisterNewMapperEx;

	public int countByExample(CompanyRegisterNewExample example) {
		return this.companyRegisterNewMapper.countByExample(example);
	}

	public CompanyRegisterNew selectByPrimaryKey(String id) {
		return this.companyRegisterNewMapper.selectByPrimaryKey(id);
	}

	public List<CompanyRegisterNew> selectByExample(CompanyRegisterNewExample example) {
		return this.companyRegisterNewMapper.selectByExample(example);
	}

	public int deleteByPrimaryKey(String id) {
		return this.companyRegisterNewMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(CompanyRegisterNew record) {
		return this.companyRegisterNewMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(CompanyRegisterNew record) {
		return this.companyRegisterNewMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(CompanyRegisterNewExample example) {
		return this.companyRegisterNewMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(CompanyRegisterNew record, CompanyRegisterNewExample example) {
		return this.companyRegisterNewMapper.updateByExampleSelective(record, example);
	}

	public int updateByExample(CompanyRegisterNew record, CompanyRegisterNewExample example) {
		return this.companyRegisterNewMapper.updateByExample(record, example);
	}

	public int insert(CompanyRegisterNew record) {
		return this.companyRegisterNewMapper.insert(record);
	}

	public int insertSelective(CompanyRegisterNew record) {
		return this.companyRegisterNewMapper.insertSelective(record);
	}

    public List<CompanyRegisterNewEx> selectList(Map<String, Object> map) {
        return this.companyRegisterNewMapperEx.selectList(map);
    }

    public List<CompanyRegisterNewEx> selectAppList(Map<String, Object> map) {
        return this.companyRegisterNewMapperEx.selectAppList(map);
    }

    public List<CompanyRegisterNewEx> selectExcelList() {
        return this.companyRegisterNewMapperEx.selectExcelList();
    }

    public CompanyRegisterNewEx selectSum(Map<String, Object> map) {
        return this.companyRegisterNewMapperEx.selectSum(map);
    }

}
